package cn.openea.perpartner.wxpay.service;

import cn.openea.perpartner.wxpay.entity.PayOrder;
import cn.openea.perpartner.wxpay.vo.PayVo;
import cn.openea.perpartner.wxpay.vo.R;

/**
 * @Name: 微信支付接口鉴权
 * @author: Mr.Yun
 * @Created: 2022/10/15 21:20
 */
public interface AuthService {

    // 获取调用微信支付接口的token授权
    R getToken(PayVo payVo) throws IllegalAccessException;

    // 验证调用支付接口是否通过鉴权，仅提供内部调用，不提供前端调用
    boolean auth(PayVo payVo) throws IllegalAccessException;

    R validata(Object object) throws IllegalAccessException;
}
